import { defineStore } from "pinia";

export const configurationPageStore = defineStore({
  id: "configuration-page",
  state: () => ({
    topoId: "",
    topoName: "",
    unityId: "",
    projectId:'',
    source:'',
    topoInfo:{}
  }),
  actions: {
    setTopoId(id: any) {
        this.topoId = id;
    },
    setTopoName(name: any) {
        this.topoName = name;
    },
    setUnityId(id: any) {
        this.unityId = id;
    },
    setSource(source: any) {
        this.source = source;
    },
    setProjectId(id: any) {
        this.projectId = id;
    },
  }
});
